package com.qianying.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.util.Date;

/**
 * 保险类型实体类
 * 映射数据库中的insurance_type表
 */
@Data
@TableName("insurance_type")
@Schema(description = "保险类型实体类，存储保险类型相关信息")
public class InsuranceType {

    @TableId(value = "id", type = IdType.AUTO)
    @Schema(description = "主键ID，自增", example = "1")
    private Long id;

    @TableField("type_name")
    @Schema(description = "保险类型名称，唯一", required = true, example = "公众责任险-15元")
    private String typeName;

    @TableField("type_code")
    @Schema(description = "保险类型代号，用于系统内部标识", example = "PUB_LIAB_15")
    private String typeCode;

    @TableField("description")
    @Schema(description = "保险类型说明，描述该保险的保障范围和条款", example = "公众责任保险，保额100万，保费15元")
    private String description;

    @TableField("create_time")
    @Schema(description = "记录创建时间，自动生成", example = "2025-08-05T10:30:00")
    private Date createTime;

    @TableField("update_time")
    @Schema(description = "记录最后更新时间，自动更新", example = "2025-08-05T15:45:00")
    private Date updateTime;
}